package director;

import behavior.strategy.Between;
import behavior.strategy.Context;
import behavior.strategy.GreaterThan;
import behavior.strategy.StatementEnum;

public class StrategyDirector {

    public static void main(String[] args) {
        Context context = new Context();
        String[] values = new String[]{"1","3"};
        context.setStatement(new Between()).runStrategy(values);
        context.setStatement(new GreaterThan()).runStrategy(values);

        System.out.println("策略枚举的运行结果");
        System.out.println(StatementEnum.BETWEEN.buildStatement(values));
        System.out.println(StatementEnum.GREATER_THAN.buildStatement(values));
    }
}
